package com.nsl.my_youlai.bbu2.model.bo.bbu;

import com.nsl.my_youlai.bbu2.enums.BbuModelEnum;
import com.nsl.my_youlai.bbu2.enums.NetGenerationEnum;
import com.nsl.my_youlai.bbu2.enums.VendorEnum2;
import com.nsl.my_youlai.bbu2.enums.BoardTypeEnum;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class BbuSlot2 {

    private int excelRowIndex;
    //主控，基带，电源
    private BoardTypeEnum boardTypeEnum;

    private VendorEnum2 vendor;

    private Integer nodeId;

    private BbuModelEnum bbuModelEnum;

    //如果可以支持 多个类型的话，该字段有效
//    private List<BoardTypeEnum> canInstallBoardTypeEnumList=new ArrayList<>();

    private int slotIndex;



    private List<BbuBoard2> bbuBoardList=new ArrayList<>();

    public NetGenerationEnum getNetGenerationEnum(){
        return bbuModelEnum.getNetGenerationEnum();
    }

    public BbuSlot2() {
    }

    public BbuSlot2(int excelRowIndex,VendorEnum2 vendor,BbuModelEnum bbuModelEnum,  Integer nodeId, BoardTypeEnum boardTypeEnum, int slotIndex) {
        this.excelRowIndex = excelRowIndex;
        this.boardTypeEnum = boardTypeEnum;
        this.vendor = vendor;
        this.nodeId = nodeId;
        this.bbuModelEnum = bbuModelEnum;
        this.slotIndex = slotIndex;
    }
}
